home *** CD-ROM | disk | FTP | other *** search
- Path: hopper.acs.ryerson.ca!ron
- From: ron@acs.ryerson.ca (Ron Wigmore)
- Newsgroups: comp.lang.c
- Subject: Summarizing the "wtmp" file
- Date: 6 Mar 1996 22:31:35 GMT
- Organization: Ryerson Polytechnic University
- Message-ID: <4hl3o7$ig4@ns2.ryerson.ca>
- NNTP-Posting-Host: hopper.acs.ryerson.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Would somebody already have a "C" program that reads the wtmp file each
- hour and produces a report on who has logged in during the last hour, from
- where they logged in from, and how many minutes they were logged in for?
-
- I am putting together a set of accounting routines that will store various
- account resource usage information in a database. Aside from not knowing
- "C", the data in the wtmp file can have different formats (eg. after a
- server crash) and so it looks like it is a little too challenging for a
- novice. Since this seems like a program someone may have already written,
- I am hoping that someone already has and could send me a copy of it.
-
- We want to track connect time, modem usage, printing, quotas, 386 versus
- Pentium, etc., and the first one appears to be the hardest.
-
- Ron,,,
-
-